#!/bin/sh
I=$1
O=$2
S=$3
BR=300
FR=25
LEN=40
ST=30
 
mencoder -sub $S -profile k800 -nosound -o vid.avi $I
ffmpeg -i $I adump.wav
faac -w -o audiodump.mp4 --obj-type LC adump.wav
rm $O
MP4Box -add audiodump.mp4 -add vid.avi $O